#afui #navbar {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-top: 1px solid #57545b;
    box-shadow: 0px -1px 0px #191a17;
    height: 46px;
    background-color: #000000;
    background-image: -webkit-linear-gradient(#33342f, #000000);
    background-image: -moz-linear-gradient(#33342f, #000000);
    background-image: -ms-linear-gradient(#33342f, #000000);
    background-image: -o-linear-gradient(#33342f, #000000);
    background-image: linear-gradient(#33342f, #000000);
}
    #afui #navbar > * > *, #afui #navbar > a, #afui #navbar > span {
        position: relative;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        display: inline-block;
        float: left;
        width: 20%;
        height: 100%;
        font-weight: normal;
        color: #fff;
        text-align: center;
        -webkit-backface-visibility: hidden;
        -webkit-perspective: 1000;
        font-size: 12px;
        line-height: 65px;
        background-position: top center;
        background-repeat: no-repeat;
        background-size:25px;
    }
    #afui #navbar > * > .index {
    text-indent:-5000px;
    }
    #afui #navbar > * > .index::after {
                content: "";
        display: block;
        position: absolute;
        left: 0px;
        top: -20px;
        z-index: -1;
        width:100%;
        height: 60px;
        background-image:url(../images/index.png);
        background-position:center;
        background-repeat:no-repeat;
    }
    #afui #navbar span > span {
        display: none;
        position: absolute;
        bottom: 85px;
        left: -20%;
        right: 0px;
        z-index: 1001;
        border-radius: 5px;
        width: 140%;
        background: #2a2a28;
        line-height: 3em;
    }
    #afui #navbar span:first-child > span {
        left: -3%;
    }

    #afui #navbar span:last-child > span {
        left: -35%;
    }
    #afui #navbar span > span::after {
        content: "";
        display: block;
        position: absolute;
       left: 40%;
        bottom: -5px;
        z-index: -1;
        width: 20px;
        height: 20px;
        background-color: inherit;
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    #afui #navbar .on > span {
        display: block;
    }

@keyframes myfirst {
    from {
        -webkit-transform: translate3d(0, 200px, 0);
    }

    to {
        -webkit-transform: translate3d(0, 0px, 0);
    }
}

@-moz-keyframes myfirst /* Firefox */
{
    from {
        -webkit-transform: translate3d(0, 200px, 0);
    }

    to {
        -webkit-transform: translate3d(0, 0px, 0);
    }
}

@-ms-keyframes myfirst /* Safari บอ Chrome */
{
    from {
        -webkit-transform: translate3d(0, 200px, 0);
    }

    to {
        -webkit-transform: translate3d(0, 0px, 0);
    }
}

@-webkit-keyframes myfirst /* Safari บอ Chrome */
{
    from {
        -webkit-transform: translate3d(0, 200px, 0);
    }

    to {
        -webkit-transform: translate3d(0, 0px, 0);
    }
}

#afui #navbar .on > * {
    animation: myfirst 0.5s ease-out;
    -moz-animation: myfirst 0.5s ease-out;
    -ms-animation: myfirst 0.5s ease-out;
    -webkit-animation: myfirst 0.5s ease-out;
}

#afui #navbar span a {
    display: block;
    overflow:hidden;
    width: 100%;
            background-position: 5px center;
        background-repeat: no-repeat;
        background-size:25px;
    color: #ffffff;
    text-indent:35px;
    text-align:left;
   white-space:nowrap;
}

    #afui #navbar span a:not(:first-child) {
        border-top: 1px solid #2e2e2c;
    }

#afui #navbar .pressed {
    background-color: #00AEEF;
}
